<template>
	<view class="uni-padding-wrap uni-common-mt">
	  <view class="uni-btn-v">
		
		  <navigator url="/pages/com/navigatorr/navigate/navigate?User=cys&userid=1" hover-class="navigator-hover">
		    <button type="default">跳转到新新页面</button>
		  </navigator>	
		  
		 
		  <button type="default" @click="goNewPage" hover-class="navigator-hover">
		    跳转到新页面
		  </button>
		  
	    <navigator url="/pages/com/view/view" open-type="redirect">
	      <button type="default">在当前页打开</button>
	    </navigator>
	    
	    <navigator url="/pages/tabBar/tabcompage/tabcompage" open-type="switchTab">
	      <button type="default">跳转tab页面</button>
	    </navigator>
	  </view>
	</view>
</template>

<script>
export default {
  data() {
    return {
      user: 'cyss',  
      uid: 111     
    }
  },
  methods: {
    goNewPage() {
      uni.navigateTo({
        url: `/pages/com/navigatorr/navigate/navigate?User=${this.user}&userid=${this.uid}`
      })
    }
  }
}
</script>

<style>

</style>